package com.sfac.day6_22.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Page Controller
 */
@Controller
public class PageController {

	/**
	 * 127.0.0.1/login ---- get
	 */
	@GetMapping(value = "/login")
	public String loginPage() {
		return "login";
	}

	/**
	 * 127.0.0.1/index ---- get
	 */
	@GetMapping(value = "/index")
	public String dataPage() {
		return "index";
	}
}
